﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Protocol.dto
{
    [Serializable]
    public class SelectRoomDTO
    {
        public SelectModel[] TeamOne;
        public SelectModel[] TeamTwo;
        public int Area;

        public int GetTeam(int userID)
        {
            foreach (SelectModel item in TeamOne)
            {
                if (userID == item.UserId)
                {
                    return 1;
                }
            }
            foreach (SelectModel item in TeamTwo)
            {
                if (userID == item.UserId)
                {
                    return 2;
                }
            }
            return -1;
        }
    }
}
